/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86184
 * Date: 2023-01-27
 * Time: 9:54
 */
public class Cyclic_structure {

    //计算1-100的和，计算1-100的奇数的和，计算1-100的偶数的和
/*    public static void main(String[] args) {
        int i = 1;
        int sum = 0;
        int odd = 0;
        int even = 0;
        while (i <= 100) {
            sum += i;
            if (i % 2 == 0) {
                even += i;
            } else {
                odd += i;
            }
            i++;
        }
        System.out.println("和：" + sum);
        System.out.println("奇数和:" + odd);
        System.out.println("偶数和:" + even);
    }
}*/

    public static void main(String[] args) {
        int i=0;
        while(i <=10){
            System.out.println(i);
            i++;
        }
    }
}
